package com.gem.day17;

/**点的实体类*/
public final class Point implements IA, IB {
	private int x;
	private int y;

	public Point() {
		System.out.println("Point.Point()");
	}

	public Point(int x, int y) {
		this.x = x;
		this.y = y;
		System.out.println("Point.Point(x,y)");
	}

	public void method1() {
		System.out.println("普通方法");
	}

	public static void method2() {
		System.out.println("静态方法");
	}

	public int method3(int x, int y) {
		System.out.println("Point.method3()");
		return x + y;
	}

	private void method4() {
		System.out.println("私有化方法");
	}

	@Override
	public String toString() {
		return "Point [x=" + x + ", y=" + y + "]";
	}
}

interface IA {

}

interface IB {

}
